<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="portlet grid_12 leading docs">
	<header>
		<!-- <h4 style="margin-top: 10px; text-align: center">上海麦博特网络技术有限公司</h4> -->
		<h4 style="margin-top: 10px; text-align: center">培训签到表</h4>

	</header>
	<section>
		<table class="basic-table">
			<thead>
				<tr>
					<th style="width: 100px">&nbsp;</th>
					<th>&nbsp;</th>
					<th>&nbsp;</th>
					<th>&nbsp;</th>

				</tr>
			</thead>
			<tbody>

				<tr>

					<td>培训课程名称</td>

					<td><a href="javascript:void(0)">${plan.title}</a></td>
					<td style="font-weight: bold">培训类别</td>
					<td>内训</td>
				</tr>

				<tr>

					<td>培训开始日期</td>

					<td><fmt:formatDate value="${plan.planStartDate}"
							pattern="yyyy-MM-dd HH:mm" /></td>

					<td style="font-weight: bold">地点</td>
					<td>${plan.classroom}</td>
				</tr>

				<tr>

					<td>培训结束日期&nbsp;</td>

					<td><fmt:formatDate value="${plan.planEndDate}"
							pattern="yyyy-MM-dd HH:mm" /></td>

					<td style="font-weight: bold">培训持续时间</td>
					<td>${(plan.planEndDate.time-plan.planStartDate.time)/1000/60/60}小时</td>
				</tr>

				<tr>

					<td>培训组织部门</td>

					<td>${plan.organization.fullName}</td>

					<td style="font-weight: bold">学员人数</td>
					<td><s:property value="#request.works.size()" /></td>
				</tr>

			</tbody>

		</table>
		<p></p>
		<table class="basic-table">
			<thead>
				<tr>
					<th style="width: 100px">培训师姓名</th>
					<th>所在部门名称</th>
					<th>职位</th>
				</tr>
			</thead>

			<tbody>

				<tr>

					<td>${plan.trainLecturer.employeeinfoWork.baseId.name}</td>
					<td>${plan.trainLecturer.employeeinfoWork.organization.fullName}</td>
					<td>${plan.trainLecturer.employeeinfoWork.duty.dutyName}</td>
				</tr>

			</tbody>

		</table>
		<p></p>
		<table class="basic-table">
			<thead>
				<tr>
					<th style="width: 100px">学员姓名</th>
					<th>工号</th>
					<th>部门</th>
					<th>职位</th>
					<th>签名</th>
				</tr>
			</thead>

			<tbody>
				<s:if test="#request.works == null || #request.works.size < 0">
					<tr>
						<td colspan="5">暂无培训人员</td>
					</tr>
				</s:if>
				<s:iterator var="work" value="#request.works">
					<tr>
						<td>${work.baseId.name}</td>
						<td>${work.workNo}</td>
						<td>${work.organization.fullName}</td>
						<td>${work.duty.dutyName}</td>
						<td>&nbsp;</td>
					</tr>
				</s:iterator>
			</tbody>

		</table>
		<p></p>
		<h4>
			<strong>备注</strong>
		</h4>
		<p>上述人员要求必须参加，并务必做好笔记。</p>

		<div class="clear"></div>


		<hr />
	</section>
</div>